<template>
    <div>
        <h3>产品详情</h3>
    </div>
</template>

<script>
    export default {
        name:'Deatail',
        created(){
            // console.log(this.$route.params.id);
            // const id = this.$route.params.id;
            const id = localStorage.getItem('pid')
            this.axios.get(`/api/product/${id}`)
            .then(res=>{

            })
            .catch(error=>{
                console.log(error);
            })
        }
    }
</script>

<style lang="less" scoped>

</style>